projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81a8aa3
)
sunxi: axp: Support VBUS drive GPIO on AXP818
author
Chen-Yu Tsai
<
[email protected]
>
Tue, 29 Mar 2016 16:26:57 +0000
(
00:26
+0800)
committer
Hans de Goede
<
[email protected]
>
Thu, 31 Mar 2016 15:03:54 +0000
(17:03 +0200)
AXP818 supports VBUS drive function, even though the manual does not
mention it.
Signed-off-by: Chen-Yu Tsai <
[email protected]
>
Reviewed-by: Hans de Goede <
[email protected]
>
Signed-off-by: Hans de Goede <
[email protected]
>
include/axp818.h
patch
|
blob
|
history
diff --git
a/include/axp818.h
b/include/axp818.h
index c2f9847753d9bc98db5a110e3143294e093852e9..b24c790383c24fdac1fd6c8d6f79d7f8e27d7b66 100644
(file)
--- a/
include/axp818.h
+++ b/
include/axp818.h
@@
-55,7
+55,11
@@
/* For axp_gpio.c */
#define AXP_POWER_STATUS 0x00
-#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5)
+#define AXP_POWER_STATUS_VBUS_PRESENT (1 << 5)
+#define AXP_VBUS_IPSOUT 0x30
+#define AXP_VBUS_IPSOUT_DRIVEBUS (1 << 2)
+#define AXP_MISC_CTRL 0x8f
+#define AXP_MISC_CTRL_N_VBUSEN_FUNC (1 << 4)
#define AXP_GPIO0_CTRL 0x90
#define AXP_GPIO1_CTRL 0x92
#define AXP_GPIO_CTRL_OUTPUT_LOW 0x00 /* Drive pin low */